import request from '@/utils/request'

// 查询用户积分兑换记录列表
export function listExchangeRecords(query) {
  return request({
    url: '/core/exchangeRecords/list',
    method: 'get',
    params: query
  })
}

// 查询用户积分兑换记录详细
export function getExchangeRecords(id) {
  return request({
    url: '/core/exchangeRecords/' + id,
    method: 'get'
  })
}

// 新增用户积分兑换记录
export function addExchangeRecords(data) {
  return request({
    url: '/core/exchangeRecords',
    method: 'post',
    data: data
  })
}

// 修改用户积分兑换记录
export function updateExchangeRecords(data) {
  return request({
    url: '/core/exchangeRecords',
    method: 'put',
    data: data
  })
}

// 删除用户积分兑换记录
export function delExchangeRecords(id) {
  return request({
    url: '/core/exchangeRecords/' + id,
    method: 'delete'
  })
}
